<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/12/12
 * Time: 16:13
 */
namespace app\models;

use Yii;
class ContentGood extends \yii\db\ActiveRecord
{
    public static function tableName()
    {
        return '{{%content_good}}';
    }
    public function rules()
    {
        return[
            [['store_id','goods_id','content_id'],'required'],
            [['store_id','goods_id','content_id','is_delete'],'integer'],
        ];
    }
    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'store_id' => 'Store ID',
            'goods_id'=>'goods_id',
            'content_id'=>'content_id',
            'model'=>'model',
        ];
    }

}